
<template>
	<div class="test-input">
		<input type="text" v-model="n">
		<div class="tab">
			<span class="active"><router-link to="/testinput/innerList">列表</router-link></span>
			<span><router-link to="/testinput/innerInput">输入框</router-link></span>
			<keep-alive>
            <router-view></router-view>
            </keep-alive>
		</div>
	</div>
</template>

<script>
	export default{
		created() {
        },
        components:{
			
        },
		data(){
			return{
			n:""
			}
		},
		methods:{
			
		},
		activated(){
			// this.$router.push('/testinput/innerList');
		},
		deactivated(){

		},
		mounted(){
		 
		}
	}
</script>
<style lang="less" scoped>
.test-input{
	height: 810px;
	overflow-y: auto;
	box-sizing: border-box;
	.tab{
		width: 100%;
		height: 40px;
		border: 1px solid #000;
		font-size: 0;
		box-sizing: border-box;
		span{
			display: inline-block;
			line-height: 40px;
			width: 150px;
			font-size: 20px;
			text-align: center;
			background: #e2e2e2;
			a{
				display: inline-block;
				width: 100%;
				height: 100%;
				text-decoration: none;
			}
			.router-link-active{
				background: salmon
			}
		}
	}
}
</style>